<!DOCTYPE html>
<html lang="en">
<head>
    [#include "/customer/include/static.htm"]
    <link href="${path}/resources/css/borrow.css?v=1.7" rel="stylesheet" type="text/css" />
</head>
<body>
<style>
    .title_red {
        background: #ff5e69;
        width: 1000px;
        height: 60px;
        line-height: 60px;
        overflow: hidden;
        margin: 0 auto;
        font-size: 18px;
        color: #fff;
    }
    .borrow_list h5 {
        width: 100%;
        height: 36px;
        line-height: 36px;
        overflow: hidden;
        clear: both;
        border-bottom: #e5e5e5 2px solid;
        font-size: 16px;
        font-weight: normal;
    }
    .borrow_list ul {
        width: 100%;
        height: auto;
        overflow: hidden;
        margin: 0 0 20px;
        padding: 20px 0;
    }
    .title_red span {
        float: left;
        display: block;
        text-indent: 20px;
    }
    .title_red font {
        display: block;
        float: left;
        font-size: 14px;
        text-indent: 15px;
    }
    .borrow_list h5 b {
        display: block;
        position: absolute;
        z-index: 1;
        background: url(./img/borrow_list_tt.jpg) no-repeat right #e7e7e7;
        padding: 0 15px;
    }

</style>
[#include "/customer/include/header.ftl"]
<script>
    layui.use('form', function(){
        var form = layui.form(), $=layui.jquery, layer = layui.layer;
        form.on('submit(MainForm)', function(data){
            var index = layer.load();
            ajax({
                url:"${path}/bid/save",
                data: data.field,
                success: function(result){
                    layer.msg(result.content,function() {
                        location.reload();
                    });
                    layer.close(index);
                },
                complete:function(){
                    layer.close(index);
                },error:function(){
                    layer.close(index);
                }
            });
            return false;
        });
    });
</script>

<div class="borrow" style="background: #eee;">
    <div style="padding:50px 0">
        <form class="layui-form">
            <div class="title_red"><span>提交借款申请</span></div>

            <div class="borrow_list" style="padding: 20px; width: 960px;height: 600px; overflow: hidden;margin: 0 auto;background: #fff">
                <ul>
            <textarea rows="3" cols="20" lay-verify="required" id="use" name="use" class="texta" style="display:none">借款</textarea>
            <input  name="loan_category" value="2" style="display: none">
            <div class="borrowmain">


                <div class="layui-form-item">
                    <label class="layui-form-label">借款金额</label>
                    <div class="layui-input-inline">
                        <input placeholder="￥" type="text" id="account" name="account"  lay-verify="required" onkeyup="value=value.replace(/[^\d.]/g,'')" />
                    </div>
                </div>


                <div class="layui-form-item">
                    <label class="layui-form-label">借款期限</label>
                    <div class="layui-input-inline">
                        <input type="text"  id="time_limit" name="time_limit"  lay-verify="required" onkeyup="value=value.replace(/[^\d]/g,'')" />

                    </div>
                    <div >
                        <input type="radio" name="is_day" value="0" title="月" [#if category.id==10] checked="checked" disabled [/#if] />
                        <input type="radio" name="is_day" value="1" title="天" [#if category.id==10]  disabled [/#if] />
                    </div>
                </div>
                <div class="layui-form-item">

                    <label class="layui-form-label">还款方式</label>
                    <div class="layui-input-inline">
                        <select name="pay_style" id="pay_style"  [#if category.id==10]disabled[/#if]>
						[@p2p_dict nid="borrow_style"]
							[#list dictList as style]
                                <option [#if category.id==10][#if 0==style.dict_value]selected="selected"[/#if][/#if] value="${style.dict_value}">${style.dict_lab}</option>
							[/#list]
						[/@p2p_dict]
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">年利率</label>
                    <div class="layui-input-inline">
                        <input  lay-verify="required" type="text" id="apr" lay-verify="required" name="apr" onkeyup="value=value.replace(/[^\d.]/g,'')" /><span>%</span>
                    </div></div>

                <div class="layui-form-item" [#if category.id!=10]style="display: none"[/#if]>

                    <label class="layui-form-label">最低待收金额</label>
                    <div class="layui-input-inline">
                        <input placeholder="￥"  type="text" lay-verify="required" id="lowest_wait_account" name="lowest_wait_account" value="0" onkeyup="value=value.replace(/[^\d.]/g,'')" />
                    </div>
                    <div class="layui-form-mid layui-word-aux">秒标特有字段,表示投标时候用户代收门槛</div>
                </div>


                <!--<div class="layui-form-item">
                    <label class="layui-form-label">密码</label>
                    <div class="layui-input-inline">
                        <input type="text" id="tbpwd" name="tbpwd" onkeyup="value=value.replace(/[^\d.]/g,'')" />
                    </div>
                </div>-->
                <div class="layui-form-item">
                    <button lay-submit lay-filter="MainForm" class="layui-btn" style="background-color: #ff5e69;margin-left:120px;width: 280px;margin-top:60px;">借款申请</button>
                </div>
                </ul>
            </div>
            </div>
        </form>
    </div>
</div>
<div class="clear"></div>
<style>
    .layui-form-label{width: 120px;}
</style>
[#include "/customer/include/footer.ftl"]
</body>
</html>